package com.wmh.baseservice.robot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import java.util.Arrays;
import java.util.ArrayList;

/**
 * @author wmh generator
 * @since 2023-02-06
 */
@ApiModel(value="RobotExecuteMode对象", description="")
public class RobotExecuteMode implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "名称")
    private String name;

    public Integer getId() {
        return id;
    }

    public RobotExecuteMode setId(Integer id) {
        this.id = id;
        return this;
    }
    public String getName() {
        return name;
    }

    public RobotExecuteMode setName(String name) {
        this.name = name;
        return this;
    }

    public static final String ID = "id";

    public static final String NAME = "name";

    @Override
    public String toString() {
        return "RobotExecuteMode{" +
            "id=" + id +
            ", name=" + name +
        "}";
    }

    public final static String[] getFields(String ...noField){
        List<String> list = new ArrayList<>(Arrays.asList(
            RobotExecuteMode.ID
            ,RobotExecuteMode.NAME
        ));
        list.removeAll(new ArrayList<>(Arrays.asList(noField)));
        return list.toArray(new String[0]);
    }
}